<?php 
$data=include'db.php';
$_POST['time']=date('Y年m月d日') ;
$data[]=$_POST;
$status=file_put_contents('db.php', "<?php \n return ".var_export($data,true).";\n?>");
if ($status) {
	$return['message']='success';
	$return['data']=$_POST;
}else{
	$return['message']='error';
}
echo json_encode($return);
?>